package Dao;

import java.util.List;

import entity.Zremark;


public interface ZremarkDao {
	
	/**
	 * Title: ishe
	 * Description: 判断是否是他的评论
	 * @author 邢磊
	 * @param email
	 * @param zremarkid
	 * @return
	 * @throws Exception
	 */
	public Boolean ishe(String email,Integer zremarkid) throws Exception;
	
	/**
	 * Title: delzremark
	 * Description: 删除子评论
	 * @author 邢磊
	 * @param zremarkid 子评论id
	 * @return 成功返回true 否则 false
	 * @throws Exception
	 */
	public Boolean delzremark(String email,Integer zremarkid) throws Exception;
	
	/**
	 * Title: addzremark
	 * Description: 回复评论
	 * @author 邢磊
	 * @param email 评论人email
	 * @param wordid 单词id
	 * @param remarkid 主评论id
	 * @param contant  评论内容
	 * @return 成功返回true 否则 false
	 * @throws Exception
	 */
	
	
	public Boolean addzremark(String email,String wordname,Integer remarkid,String contant) throws Exception;

	
	
	/**
	 * Title: getzremark
	 * Description : 获取该单词的主评论的所有子评论 
	 * @author 邢磊
	 * @param wordid    单词id
	 * @param remarkid  主评论 id
	 * @return 返回该单词的主评论的所有子评论 
	 * @throws Exception
	 */
	public List<Zremark> getzremark(String wordname,Integer remarkid) throws Exception;
	
}
